package com.slm.report.db;

import com.raizlabs.android.dbflow.annotation.Column;
import com.raizlabs.android.dbflow.annotation.PrimaryKey;
import com.raizlabs.android.dbflow.annotation.Table;
import com.raizlabs.android.dbflow.structure.BaseModel;

import java.io.Serializable;
import java.util.Comparator;

/**
 * @ProjectName: My Application
 * @Package: com.slm.report.db
 * @ClassName: StudentInfoBean
 * @Description: java类作用描述
 * @Author: 王丹丹
 * @CreateDate: 2020/5/28 14:31
 * @UpdateUser: 更新者
 * @UpdateDate: 2020/5/28 14:31
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
@Table(database = ReportDatabase.class, name = "student_info")
public class StudentInfoBean extends BaseModel implements Serializable {
    @PrimaryKey(autoincrement = true)
    @Column
    private long id;

    //名称
    @Column
    private String name;
    @Column
    private String sex;
    @Column
    private String age;
    @Column
    private String createTime;
    @Column
    private String schoolName;
    @Column
    private String nianji;
    @Column
    private String banName;
    @Column
    private String phone;
    @Column
    private String height;
    @Column
    private String vipStartTime;
    @Column
    private String vipEndTime;
    @Column
    private String isHaveHis;
    @Column
    private String hisLeftVal;
    @Column
    private String hisRightVal;
    @Column
    private String qiuLeftVal;
    @Column
    private String qiuRightVal;
    @Column
    private String zhuLeftVal;
    @Column
    private String zhuRightVal;
    @Column
    private String zhouLeftVal;
    @Column
    private String zhouRightVal;
    //拼音名称
    @Column
    private String pyName;
    //首字母
    @Column
    private String fisrtSpell;
    @Column
    private String luoLeftVal;
    @Column
    private String luoRightVal;
    @Column
    private String fuLeftVal;
    @Column
    private String fuRightVal;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPyName() {
        return pyName;
    }

    public void setPyName(String pyName) {
        this.pyName = pyName;
    }

    public String getFisrtSpell() {
        return fisrtSpell;
    }

    public void setFisrtSpell(String fisrtSpell) {
        this.fisrtSpell = fisrtSpell;
    }

    public String getLuoLeftVal() {
        return luoLeftVal;
    }

    public void setLuoLeftVal(String luoLeftVal) {
        this.luoLeftVal = luoLeftVal;
    }

    public String getLuoRightVal() {
        return luoRightVal;
    }

    public void setLuoRightVal(String luoRightVal) {
        this.luoRightVal = luoRightVal;
    }

    public String getFuLeftVal() {
        return fuLeftVal;
    }

    public void setFuLeftVal(String fuLeftVal) {
        this.fuLeftVal = fuLeftVal;
    }

    public String getFuRightVal() {
        return fuRightVal;
    }

    public void setFuRightVal(String fuRightVal) {
        this.fuRightVal = fuRightVal;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getSchoolName() {
        return schoolName;
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }

    public String getNianji() {
        return nianji;
    }

    public void setNianji(String nianji) {
        this.nianji = nianji;
    }

    public String getBanName() {
        return banName;
    }

    public void setBanName(String banName) {
        this.banName = banName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getHeight() {
        return height;
    }

    public void setHeight(String height) {
        this.height = height;
    }

    public String getVipStartTime() {
        return vipStartTime;
    }

    public void setVipStartTime(String vipStartTime) {
        this.vipStartTime = vipStartTime;
    }

    public String getVipEndTime() {
        return vipEndTime;
    }

    public void setVipEndTime(String vipEndTime) {
        this.vipEndTime = vipEndTime;
    }

    public String getIsHaveHis() {
        return isHaveHis;
    }

    public void setIsHaveHis(String isHaveHis) {
        this.isHaveHis = isHaveHis;
    }

    public String getHisLeftVal() {
        return hisLeftVal;
    }

    public void setHisLeftVal(String hisLeftVal) {
        this.hisLeftVal = hisLeftVal;
    }

    public String getHisRightVal() {
        return hisRightVal;
    }

    public void setHisRightVal(String hisRightVal) {
        this.hisRightVal = hisRightVal;
    }

    public String getQiuLeftVal() {
        return qiuLeftVal;
    }

    public void setQiuLeftVal(String qiuLeftVal) {
        this.qiuLeftVal = qiuLeftVal;
    }

    public String getQiuRightVal() {
        return qiuRightVal;
    }

    public void setQiuRightVal(String qiuRightVal) {
        this.qiuRightVal = qiuRightVal;
    }

    public String getZhuLeftVal() {
        return zhuLeftVal;
    }

    public void setZhuLeftVal(String zhuLeftVal) {
        this.zhuLeftVal = zhuLeftVal;
    }

    public String getZhuRightVal() {
        return zhuRightVal;
    }

    public void setZhuRightVal(String zhuRightVal) {
        this.zhuRightVal = zhuRightVal;
    }

    public String getZhouLeftVal() {
        return zhouLeftVal;
    }

    public void setZhouLeftVal(String zhouLeftVal) {
        this.zhouLeftVal = zhouLeftVal;
    }

    public String getZhouRightVal() {
        return zhouRightVal;
    }

    public void setZhouRightVal(String zhouRightVal) {
        this.zhouRightVal = zhouRightVal;
    }


    /**
     * 按拼音进行排序
     */
    public static class ComparatorPY implements Comparator<StudentInfoBean> {
        @Override
        public int compare(StudentInfoBean lhs, StudentInfoBean rhs) {
            String str1 = lhs.pyName;
            String str2 = rhs.pyName;
            return str1.compareToIgnoreCase(str2);
        }
    }
}
